package ncme.auto.framework.core.aspects;

import ncme.auto.framework.core.annotation.aspect.AutoBaseProcess;
import ncme.auto.framework.core.aspects.base.BaseAutoAspect;
import ncme.auto.framework.core.entities.ResMsg;
import ncme.auto.framework.core.entities.aspect.AspectInfo;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AutoBaseProcessAspect extends BaseAutoAspect<AutoBaseProcess> {

    @Pointcut("@annotation(com.hby.common.annotation.aspect.AutoBaseProcess)")
    public void aspectCut() {
    }

    @Override
    protected void parameterVerify(AspectInfo aspectInfo) {
        //对第一个参数（需为Map）进行参数验证
        //verifyParamsExist(aspectInfo.getParameter1(), aspectInfo.getAnnotationInfo().getAutoBaseProcess().REQUIRED_PARAMS());
    }

    @Override
    protected void parameterPreHandler(AspectInfo aspectInfo) {

    }

    @Override
    protected ResMsg autoProcess(AspectInfo aspectInfo) {
        return null;
    }


}
